package com.example.telesys.service;

import com.example.telesys.interceptor.FeignPassToken;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-customer", configuration = FeignPassToken.class)
public interface CustomerService {

    @RequestMapping("/customer/addCustomer")
    int addCustomer(@RequestParam("username") String username);

}
